package sk.custom.frame;

import java.awt.*; 
import java.awt.event.*;

public class CFrame extends Frame implements WindowListener {

    public CFrame(String title){
    	super(title);
    	addWindowListener(this);
    }
	
	@Override
	public void windowClosing(WindowEvent e) {
		setVisible(false); 
	    dispose(); 
	    System.exit(0); 		
	}
	@Override
	public void windowActivated(WindowEvent e) {}

	@Override
	public void windowClosed(WindowEvent e) {}

	@Override
	public void windowDeactivated(WindowEvent e) {}

	@Override
	public void windowDeiconified(WindowEvent e) {}

	@Override
	public void windowIconified(WindowEvent e) {}

	@Override
	public void windowOpened(WindowEvent e) {}   
}
